<section class="title">
	<h4><?php echo sprintf(lang('uploking_profile_manager_folder_file_label'), $user->username)?></h4>
</section>
<section class="item">
	<?php echo form_hidden('user_id', $userId)?>
	<div class="main_content_wrapper">
		<div class="main_content_top"></div>
		<div class="main_content">
		<div class="top_funtion">
			<div id="upload_bt"><a id="upload_bt" href="<?php echo site_url();?>admin/user_manager/upload" class="ajax cboxElement">Upload</a></div>
			<div id="search-form">
				<input id="search-input" name="keyword" type="text" maxlength="25" required placeholder="Search" autofocus />
			</div>
		</div>
		<div class="box_content">
			<div id="list_folder">
				<ul>
					<li id="root-folder">
						<div>
							<a href="#" rel="0">Root</a>
						</div>
					</li>
					<ul class="sortable">
						<?php foreach($pages as $page): ?>
								<li id="page_<?php echo $page['id']; ?>">
									<div>
										<a href="#" rel="<?php echo $page['id']; ?>"><?php echo $page['name']; ?></a>
									</div>
							
								<?php if(isset($page['children'])): ?>
									<ul>
										<?php $controller->tree_builder($page); ?>
									</ul>
								</li>
							
								<?php else: ?>
								
								</li>
							<?php endif; ?>
						<?php endforeach; ?>
			
					</ul>
				</ul>	
			</div>
			<div class="list_funtions">
				<div class="file_funtions">
					<a id="new-folder-link" href="<?php echo site_url();?>admin/user_manager/files/new_folder">
						<image src="<?php echo site_url();?>media/images/new_folder.jpg" />
					</a>
					<a id="move-link" href="#">
						<image src="<?php echo site_url();?>media/images/new_file.jpg" />
					</a>
					<a id="copy-link" href="#">
						<image src="<?php echo site_url();?>media/images/copy_file.jpg" />
					</a>
					<a id="rename-link" href="#"><image src="<?php echo site_url();?>media/images/rename.jpg" /></a>
					<a id="play-video" href="#"><image src="<?php echo site_url();?>media/images/play_video.jpg" /></a>
					<a id="view-file-link" href="#"><image src="<?php echo site_url();?>media/images/view_file.jpg" /></a>
					<a id="download-link" href="#"><image src="<?php echo site_url();?>media/images/download.jpg" /></a>
					<a id="share-link" href="#"><image src="<?php echo site_url();?>media/images/back_folder.jpg" /></a>
					<a id="delete_action" href="#"><image src="<?php echo site_url();?>media/images/delete.jpg" /></a>
				</div>
				<div id="file_url">
					<input name="selected_file_path" id="selected_file_path" type="text" maxlength="45" value=""/>
					<input name="selected_file_id" id="selected_file_id" value="" type="hidden">
				</div>
				<div id="show_file">
					<table class="data-table">
						<thead>
							<tr class="first">
								<th rowspan="1" class="first">&nbsp;</th>
								<th rowspan="1"><span class="nobr">Type</span></th>
								<th rowspan="1"><span class="nobr">Name</span></th>
								<th colspan="1"><span class="nobr">Size</span></th>
								<th  rowspan="1">Downloads</th>
								<th colspan="1" class="a-center">Added</th>
								<th class="lass" rowspan="1"><a href="#"><img src="<?php echo site_url();?>media/images/setting_icon.jpg" /></a></th>
							</tr>
	                            </thead>
						<tbody>
						</tbody>
					</table>
				</div>
			</div>
			<div class="clear"></div>
		</div>
	</div>
	<div class="main_content_bottom"></div>
	</div>
	<div id='confirm'>
		<div class='header'><span><?php echo lang('uploking_confirm_label')?></span></div>
		<div class='message'><?php echo lang('uploking_delete_confirm_message_label')?></div>
			<div class='buttons'>
			<div class='no simplemodal-close'><?php echo lang('uploking_confirm_no_label')?></div><div class='yes'><?php echo lang('uploking_confirm_yes_label')?></div>
		</div>
	</div>
</section>